﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001183 RID: 4483
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SetPlayerInfoScRsp : IMessage<SetPlayerInfoScRsp>, IMessage, IEquatable<SetPlayerInfoScRsp>, IDeepCloneable<SetPlayerInfoScRsp>, IBufferMessage
	{
		// Token: 0x170038B2 RID: 14514
		// (get) Token: 0x0600C89F RID: 51359 RVA: 0x0021C9B3 File Offset: 0x0021ABB3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SetPlayerInfoScRsp> Parser
		{
			get
			{
				return SetPlayerInfoScRsp._parser;
			}
		}

		// Token: 0x170038B3 RID: 14515
		// (get) Token: 0x0600C8A0 RID: 51360 RVA: 0x0021C9BA File Offset: 0x0021ABBA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SetPlayerInfoScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170038B4 RID: 14516
		// (get) Token: 0x0600C8A1 RID: 51361 RVA: 0x0021C9CC File Offset: 0x0021ABCC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SetPlayerInfoScRsp.Descriptor;
			}
		}

		// Token: 0x0600C8A2 RID: 51362 RVA: 0x0021C9D3 File Offset: 0x0021ABD3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetPlayerInfoScRsp()
		{
		}

		// Token: 0x0600C8A3 RID: 51363 RVA: 0x0021C9E8 File Offset: 0x0021ABE8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetPlayerInfoScRsp(SetPlayerInfoScRsp other) : this()
		{
			this.jKHOCHIJPDH_ = other.jKHOCHIJPDH_;
			this.retcode_ = other.retcode_;
			this.curAvatarPath_ = other.curAvatarPath_;
			this.isModify_ = other.isModify_;
			this.curAvatarPathInfoList_ = other.curAvatarPathInfoList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600C8A4 RID: 51364 RVA: 0x0021CA4D File Offset: 0x0021AC4D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetPlayerInfoScRsp Clone()
		{
			return new SetPlayerInfoScRsp(this);
		}

		// Token: 0x170038B5 RID: 14517
		// (get) Token: 0x0600C8A5 RID: 51365 RVA: 0x0021CA55 File Offset: 0x0021AC55
		// (set) Token: 0x0600C8A6 RID: 51366 RVA: 0x0021CA5D File Offset: 0x0021AC5D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public long JKHOCHIJPDH
		{
			get
			{
				return this.jKHOCHIJPDH_;
			}
			set
			{
				this.jKHOCHIJPDH_ = value;
			}
		}

		// Token: 0x170038B6 RID: 14518
		// (get) Token: 0x0600C8A7 RID: 51367 RVA: 0x0021CA66 File Offset: 0x0021AC66
		// (set) Token: 0x0600C8A8 RID: 51368 RVA: 0x0021CA6E File Offset: 0x0021AC6E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x170038B7 RID: 14519
		// (get) Token: 0x0600C8A9 RID: 51369 RVA: 0x0021CA77 File Offset: 0x0021AC77
		// (set) Token: 0x0600C8AA RID: 51370 RVA: 0x0021CA7F File Offset: 0x0021AC7F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MultiPathAvatarType CurAvatarPath
		{
			get
			{
				return this.curAvatarPath_;
			}
			set
			{
				this.curAvatarPath_ = value;
			}
		}

		// Token: 0x170038B8 RID: 14520
		// (get) Token: 0x0600C8AB RID: 51371 RVA: 0x0021CA88 File Offset: 0x0021AC88
		// (set) Token: 0x0600C8AC RID: 51372 RVA: 0x0021CA90 File Offset: 0x0021AC90
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool IsModify
		{
			get
			{
				return this.isModify_;
			}
			set
			{
				this.isModify_ = value;
			}
		}

		// Token: 0x170038B9 RID: 14521
		// (get) Token: 0x0600C8AD RID: 51373 RVA: 0x0021CA99 File Offset: 0x0021AC99
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<MultiPathAvatarInfo> CurAvatarPathInfoList
		{
			get
			{
				return this.curAvatarPathInfoList_;
			}
		}

		// Token: 0x0600C8AE RID: 51374 RVA: 0x0021CAA1 File Offset: 0x0021ACA1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SetPlayerInfoScRsp);
		}

		// Token: 0x0600C8AF RID: 51375 RVA: 0x0021CAB0 File Offset: 0x0021ACB0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SetPlayerInfoScRsp other)
		{
			return other != null && (other == this || (this.JKHOCHIJPDH == other.JKHOCHIJPDH && this.Retcode == other.Retcode && this.CurAvatarPath == other.CurAvatarPath && this.IsModify == other.IsModify && this.curAvatarPathInfoList_.Equals(other.curAvatarPathInfoList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600C8B0 RID: 51376 RVA: 0x0021CB30 File Offset: 0x0021AD30
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.JKHOCHIJPDH != 0L)
			{
				num ^= this.JKHOCHIJPDH.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.CurAvatarPath != MultiPathAvatarType.None)
			{
				num ^= this.CurAvatarPath.GetHashCode();
			}
			if (this.IsModify)
			{
				num ^= this.IsModify.GetHashCode();
			}
			num ^= this.curAvatarPathInfoList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600C8B1 RID: 51377 RVA: 0x0021CBCF File Offset: 0x0021ADCF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600C8B2 RID: 51378 RVA: 0x0021CBD7 File Offset: 0x0021ADD7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600C8B3 RID: 51379 RVA: 0x0021CBE0 File Offset: 0x0021ADE0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.Retcode);
			}
			if (this.IsModify)
			{
				output.WriteRawTag(80);
				output.WriteBool(this.IsModify);
			}
			this.curAvatarPathInfoList_.WriteTo(ref output, SetPlayerInfoScRsp._repeated_curAvatarPathInfoList_codec);
			if (this.JKHOCHIJPDH != 0L)
			{
				output.WriteRawTag(112);
				output.WriteInt64(this.JKHOCHIJPDH);
			}
			if (this.CurAvatarPath != MultiPathAvatarType.None)
			{
				output.WriteRawTag(120);
				output.WriteEnum((int)this.CurAvatarPath);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600C8B4 RID: 51380 RVA: 0x0021CC84 File Offset: 0x0021AE84
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.JKHOCHIJPDH != 0L)
			{
				num += 1 + CodedOutputStream.ComputeInt64Size(this.JKHOCHIJPDH);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.CurAvatarPath != MultiPathAvatarType.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.CurAvatarPath);
			}
			if (this.IsModify)
			{
				num += 2;
			}
			num += this.curAvatarPathInfoList_.CalculateSize(SetPlayerInfoScRsp._repeated_curAvatarPathInfoList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600C8B5 RID: 51381 RVA: 0x0021CD14 File Offset: 0x0021AF14
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SetPlayerInfoScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.JKHOCHIJPDH != 0L)
			{
				this.JKHOCHIJPDH = other.JKHOCHIJPDH;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.CurAvatarPath != MultiPathAvatarType.None)
			{
				this.CurAvatarPath = other.CurAvatarPath;
			}
			if (other.IsModify)
			{
				this.IsModify = other.IsModify;
			}
			this.curAvatarPathInfoList_.Add(other.curAvatarPathInfoList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600C8B6 RID: 51382 RVA: 0x0021CD9D File Offset: 0x0021AF9D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600C8B7 RID: 51383 RVA: 0x0021CDA8 File Offset: 0x0021AFA8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 80U)
				{
					if (num == 48U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
					if (num == 80U)
					{
						this.IsModify = input.ReadBool();
						continue;
					}
				}
				else
				{
					if (num == 106U)
					{
						this.curAvatarPathInfoList_.AddEntriesFrom(ref input, SetPlayerInfoScRsp._repeated_curAvatarPathInfoList_codec);
						continue;
					}
					if (num == 112U)
					{
						this.JKHOCHIJPDH = input.ReadInt64();
						continue;
					}
					if (num == 120U)
					{
						this.CurAvatarPath = (MultiPathAvatarType)input.ReadEnum();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04005084 RID: 20612
		private static readonly MessageParser<SetPlayerInfoScRsp> _parser = new MessageParser<SetPlayerInfoScRsp>(() => new SetPlayerInfoScRsp());

		// Token: 0x04005085 RID: 20613
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005086 RID: 20614
		public const int JKHOCHIJPDHFieldNumber = 14;

		// Token: 0x04005087 RID: 20615
		private long jKHOCHIJPDH_;

		// Token: 0x04005088 RID: 20616
		public const int RetcodeFieldNumber = 6;

		// Token: 0x04005089 RID: 20617
		private uint retcode_;

		// Token: 0x0400508A RID: 20618
		public const int CurAvatarPathFieldNumber = 15;

		// Token: 0x0400508B RID: 20619
		private MultiPathAvatarType curAvatarPath_;

		// Token: 0x0400508C RID: 20620
		public const int IsModifyFieldNumber = 10;

		// Token: 0x0400508D RID: 20621
		private bool isModify_;

		// Token: 0x0400508E RID: 20622
		public const int CurAvatarPathInfoListFieldNumber = 13;

		// Token: 0x0400508F RID: 20623
		private static readonly FieldCodec<MultiPathAvatarInfo> _repeated_curAvatarPathInfoList_codec = FieldCodec.ForMessage<MultiPathAvatarInfo>(106U, MultiPathAvatarInfo.Parser);

		// Token: 0x04005090 RID: 20624
		private readonly RepeatedField<MultiPathAvatarInfo> curAvatarPathInfoList_ = new RepeatedField<MultiPathAvatarInfo>();
	}
}
